import request from '@/utils/request.js'

// 获取订单
const getOrder = (dataType, page) => {
  return request.get('/order/list', {
    params: {
      dataType,
      page
    }
  })
}

// 获取个人信息数据
const getUserInfo = () => {
  return request.get('/user/info')
}

export {
  getOrder,
  getUserInfo
}
